﻿<div class="sample_title">Simple Popup With Local Content</div>

sample:<br />
<div class="sample_preview">
    <script type="text/javascript"><!--//--><![CDATA[//><!--
        $(document).ready(function() {
            // Bind Event Click
            $('#btn_popup1').click(function() {
                // Create Popup Object
                var $popup = openPopup();

                // Assign popup
                $popup.html("This is my popup..");
            });
        });
    //--><!]]></script>
    <button id="btn_popup1">Open Popup</button>
</div><br />
code:
<div class="sample_code" rel="brush: js; html-script: false;">
    &lt;script type="text/javascript"&gt
        $(document).ready(function() {
            // Bind Event Click
            $('#btn_popup').click(function() {
                // Create Popup Object
                var $popup = openPopup();

                // Assign popup content
                $popup.html("This is my popup..");
            });
        });
    &lt;/script&gt;
    
    &lt;button id="btn_popup"&gt;Open Popup&lt;/button&gt;
    <% for (int i = 0, max_i = 12; i < max_i; i++) { Response.Write("<br />"); } %>
</div>